{$wrapper_prefix|default}

<link rel="stylesheet" href="{$_STATIC_URL}/admin/css/index.index.css"/>

<section class="vbox">
    <section class="scrollable padder">
        <ul class="breadcrumb no-border no-radius b-b b-light pull-in">
            <li><a href="/admin"><i class="fa fa-home"></i> Home</a></li>
            <li class="active">欢迎进入后台管理</li>
        </ul>
        
        <div class="row">
            <div class="col-sm-3">
                <section class="panel panel-default">
                    <header class="panel-heading">我的工作 [本年度]</header>
                    <ul class="list-group no-radius">
                        <li class="list-group-item">
                            <span class="pull-right">{$count_work.count_archive} 条</span>
                            <span class="label bg-primary">1</span>
                            案件数
                        </li>
                        <li class="list-group-item">
                            <span class="pull-right">{$count_work.count_card} 条</span>
                            <span class="label bg-dark">2</span>
                            行动数
                        </li>
                        <li class="list-group-item">
                            <span class="pull-right">{$count_work.count_duration_video} 秒</span>
                            <span class="label bg-light">3</span>
                            录像时长
                        </li>
                        <li class="list-group-item">
                            <span class="pull-right">{$count_work.count_image} 张</span>
                            <span class="label bg-light">4</span>
                            照片张数
                        </li>
                        <li class="list-group-item">
                            <span class="pull-right">{$count_work.count_duration_audio} 秒</span>
                            <span class="label bg-light">5</span>
                            录音时长
                        </li>
                    </ul>
                </section>
            </div>
            
            <div class="col-sm-9">
                <section class="panel panel-default">
                    <header class="panel-heading">最近行动</header>
                    <table class="table table-striped m-b-none text-sm">
                        <thead>
                            <tr>
                                <th width="60">序号</th>
                                <th>标题</th>
                                <th>所属案件</th>
                                <th width="150">创建时间</th>
                                <th width="70">操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            {foreach from=$recent_card key=k item=v}
                            <tr>
                                <td>{$k + 1}</td>
                                <td>{$v.title}</td>
                                <td>{$v.archive_title}</td>
                                <td>{$v.ctime}</td>
                                <td class="text-right">
                                    <a href="/archiveadmin/content/detail?_id={$v.archive_id}&card_id={$v._id}" type="button" class="btn btn-xs btn-danger action-confirm-operate">进入</a>
                                </td>
                            </tr>
                            {/foreach}
                        </tbody>
                    </table>
                </section>
            </div>
        </div>
        
        <section class="panel panel-default">
            <header class="panel-heading bg-light">
                <ul class="nav nav-tabs pull-right">
                    <li class="active"><a href="#workbench_vod" data-toggle="tab">录像</a></li>
                    <li><a href="#workbench_image" data-toggle="tab">照片</a></li>
                    <li><a href="#workbench_audio" data-toggle="tab">录音</a></li>
                </ul>
                <span class="hidden-sm">工作台</span>
            </header>
            <div class="panel-body">
                <div class="tab-content" id="wb_content">
                    <div class="tab-pane active" id="workbench_vod">
                        <section class="panel panel-default wb-gallery-edit wb-gallery-video">
                            <header class="panel-heading">
                                <span class="label bg-danger pull-right"><font class="count-attachment">{$content_wb_video.count_all}</font> 个</span>
                                <i class="fa fa-th-large pull-right m-r-sm text-lg cursor-pointer text-muted wb-gallery-show-type"></i>
                                <i class="fa fa-th-list pull-right m-r-xs text-lg cursor-pointer text-primary wb-gallery-show-type"></i>
                                <a href="javascript:;" class="btn btn-xs btn-primary action-mkdir" data-type="video">
                                    <i class="fa fa-plus"></i><span> 新建文件夹</span>
                                </a>
                            </header>
                            
                            <!-- 导航 - 录像 @start -->
                            <div class="text-sm wrapper-sm b-b wb-gallery-nav" id="wb_nav_video">
                                <a href="javascript:;" data-fid="{$content_wb_video.parent_folder.fid}" data-type="video">&nbsp;/&nbsp;</a>
                            </div>
                            <!-- 导航 - 录像 @end -->
                            
                            <!-- 录像 - 列表式 @start -->
                            {include file="admin/template/index.index.wb.video.listing.html"}
                            <!-- 录像 - 列表式 @end -->
                            
                            <!-- 录像 - 平铺式 @start -->
                            {include file="admin/template/index.index.wb.video.tiled.html"}
                            <!-- 录像 - 平铺式 @end -->
                        </section>
                    </div>
                    
                    <div class="tab-pane" id="workbench_image">
                        <section class="panel panel-default wb-gallery-edit wb-gallery-image">
                            <header class="panel-heading">
                                <span class="label bg-danger pull-right"><font class="count-attachment">{$content_wb_image.count_all}</font> 张</span>
                                <i class="fa fa-th-large pull-right m-r-sm text-lg cursor-pointer text-muted wb-gallery-show-type"></i>
                                <i class="fa fa-th-list pull-right m-r-xs text-lg cursor-pointer text-primary wb-gallery-show-type"></i>
                                <a href="javascript:;" class="btn btn-xs btn-primary action-mkdir" data-type="image">
                                    <i class="fa fa-plus"></i><span> 新建文件夹</span>
                                </a>
                            </header>
                            
                            <!-- 导航 - 照片 @start -->
                            <div class="text-sm wrapper-sm b-b wb-gallery-nav" id="wb_nav_image">
                                <a href="javascript:;" data-fid="{$content_wb_image.parent_folder.fid}" data-type="image">&nbsp;/&nbsp;</a>
                            </div>
                            <!-- 导航 - 照片 @end -->
                            
                            <!-- 照片 - 列表式 @start -->
                            {include file="admin/template/index.index.wb.image.listing.html"}
                            <!-- 照片 - 列表式 @end -->
                            
                            <!-- 照片 - 平铺式 @start -->
                            {include file="admin/template/index.index.wb.image.tiled.html"}
                            <!-- 照片 - 平铺式 @end -->
                    </div>
                    
                    <div class="tab-pane" id="workbench_audio">
                        <section class="panel panel-default wb-gallery-edit wb-gallery-audio">
                            <header class="panel-heading">
                                <span class="label bg-danger pull-right"><font class="count-attachment">{$content_wb_audio.count_all}</font> 个</span>
                                <i class="fa fa-th-large pull-right m-r-sm text-lg cursor-pointer text-muted wb-gallery-show-type"></i>
                                <i class="fa fa-th-list pull-right m-r-xs text-lg cursor-pointer text-primary wb-gallery-show-type"></i>
                                <a href="javascript:;" class="btn btn-xs btn-primary action-mkdir" data-type="audio">
                                    <i class="fa fa-plus"></i><span> 新建文件夹</span>
                                </a>
                            </header>
                            
                            <!-- 导航 - 录音 @start -->
                            <div class="text-sm wrapper-sm b-b wb-gallery-nav" id="wb_nav_audio">
                                <a href="javascript:;" data-fid="{$content_wb_audio.parent_folder.fid}" data-type="audio">&nbsp;/&nbsp;</a>
                            </div>
                            <!-- 导航 - 录音 @end -->
                            
                            <!-- 录音 - 列表式 @start -->
                            {include file="admin/template/index.index.wb.audio.listing.html"}
                            <!-- 录音 - 列表式 @end -->
                            
                            <!-- 录音 - 平铺式 @start -->
                            {include file="admin/template/index.index.wb.audio.tiled.html"}
                            <!-- 录音 - 平铺式 @end -->
                        </section>
                    </div>
                </div>
            </div>
            
        </section>
        
    </section>
</section>
<input type="hidden" name="userid" value="{$loggedInUser.userid}" />

<!-- modal - 选择迁移目录 -->
<div class="modal fade" id="modal_wb_move_attachment">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close close-modal" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">选择迁移目录</h4>
            </div>
            <div class="modal-body panel-body">
                
                <form class="form-horizontal">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">移动至</label>
                        <div class="col-sm-7">
                            <select class="form-control">
                                
                            </select>
                        </div>
                    </div>
                </form>
                
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-s-md btn-primary input-submit-move" data-type="video">确定</button>
                <button type="button" class="btn btn-danger close-modal" data-dismiss="modal">取消</button>
                <input type="hidden" name="a_id" value="" />
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>
<!-- / modal - 选择迁移目录 -->

<script src="{$_STATIC_URL}/admin/js/index.index.filesystem.js" type="text/javascript"></script>
<script src="{$_STATIC_URL}/admin/js/index.index.print.js" type="text/javascript"></script>

{$wrapper_suffix|default}